package com.cbank.domain;

import java.util.Date;

/**
 * 实体基类
 */
public abstract class BaseEntity {

    public static final int STATUS_VALID=1;//数据有效
    public static final int STATUS_INVALID=-1;//数据无效

    protected Integer id;
    protected int status;
    //创建时间
    protected Date createTime;
    //最后修改时间
    protected Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}
